Skip to content

fix(pkey): use correct value for true - #176

Merged
moritzbuhl merged 1 commit into
tpm2-software:masterfrom
whooo:fix-boolean-encoding
Sep 10, 2026
Merged

moritzbuhl merged 1 commit into
tpm2-software:masterfrom
whooo:fix-boolean-encoding

Conversation

@whooo

@whooo whooo commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

ASN1 DER encoding expects the boolean value for true to be 0xFF.
Stricter DER decoders will raise an error if the value isn't 0 or 0xFF.

ASN1 DER encoding expects the boolean value for true to be 0xFF.
Stricter DER decoders will raise an error if the value isn't 0 or 0xFF.

Signed-off-by: Erik Larsson <who+github@cnackers.org>
@moritzbuhl
moritzbuhl merged commit b3da8eb into tpm2-software:master Sep 10, 2026
8 checks passed
@moritzbuhl moritzbuhl mentioned this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants